package day1_12.FirstPhase.StringBulder;

import java.util.Scanner;

// 回文数
public class Palindrome {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入一个字符串：");

        String str = sc.next();

        if ((new StringBuilder(str).reverse().toString()).equals(str)) {
            System.out.println("是回文字符串");
        } else {
            System.out.println("不是回文字符串");
        }
    }
}
